﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace EventLogAdmin
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            if (Properties.Settings.Default.NewVersion)
            {
                Properties.Settings.Default.Upgrade();
                Properties.Settings.Default.NewVersion = false;
                Properties.Settings.Default.Save();
            }
            if (Properties.Settings.Default.FirstRun)
            {
                MessageBox.Show("Important notice!\r\nThis utility can be used to make changes to the Event Log system.\r\nUsed incorrectly it can damage the computer Event system.\r\n\r\nPlease use it carefully.\r\n\r\nYou have been warned! Good luck...", "First run", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                Properties.Settings.Default.FirstRun = false;
                Properties.Settings.Default.Save();
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());
        }
    }
}
